import request from '@/utils/request'

// 查询户管理列表
export function listDoor(query) {
  return request({
    url: '/house/cost/list',
    method: 'get',
    params: query
  })
}

// 查询户管理详细
export function getDoor(costId) {
  return request({
    url: '/house/cost/' + costId,
    method: 'get'
  })
}
// 获取小区信息
export function getAreaInfo1(areaName) {
  return request({
    url: '/house/area/list2/'+areaName,
    method: 'get'
  })
}


export function updateDoor(data) {
  return request({
    url:'/house/cost',
    method: 'put',
    data: data
  })
}

// 获取小区信息
  export function getAreaInfo() {
    return request({
      url: '/house/area/list1',
      method: 'get'
    })
  }

// 获取楼宇信息
  export function getGroupInfo(areaName) {
    return request({
      url: '/house/group/getGroupInfo/'+areaName,
      method: 'get'
    })
  }

// 获取单元信息
  export function getUnitInfo(areaName,groupName) {
    return request({
      url: '/house/unit/getUnitInfo/'+areaName+"/"+groupName,
      method: 'get'
    })
  }
